<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Document</title>
</head>

<body>
  <div id="app">
    <p>{{name}}</p>
    <p>{{age}}</p>
    <p z-html="htmlccc"></p>
    <p z-text="name">{{name}}</p>
    <input type="text" z-model="name">
    <button @click="changeName">点我</button>
  </div>
  <script src="./zvue.js"></script>
  <script src="./compile.js"></script>
  <script>
    let vm = new ZVue({
      el: '#app',
      data: {
        name: 'zixuan',
        age: 20,
        htmlccc: "<div>888</div>"
      },
      methods: {
        changeName() {
          this.name = "vuejs学习中"          
        }
      },
      created(){
        setTimeout(() => {
          this.age = 2333
        }, 3000);
      }
    })
  </script>
</body>

</html>